package cn.edu.scau.cmi.wangzm.composite.consistent;

import java.util.HashSet;
import java.util.Set;

public abstract class ConsistentComponent {
    ConsistentComponent parent=null;
    Set<ConsistentComponent> children=new HashSet<ConsistentComponent>();
    public abstract ConsistentComponent addChild(ConsistentComponent child);
    public abstract ConsistentComponent deleteChild(ConsistentComponent child);
    public abstract Set<ConsistentComponent> getChildren();
    public abstract String Run();
    public abstract ConsistentComponent getParent();
}
